#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <qmenubutton.h>
#include "Cbackgroundwidget.h"
#include "whiteboard.h"

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    QMenuButton *menubutton;
    QMenuButton *closebutton;
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
public slots:
    void buttonAction();
    void closeToolWindow();
    void changeBgColor();
    void stopDraw();

private:
    Ui::MainWindow *ui;
    WhiteBoard *w;
    CbackgroundWidget *c;
};
#endif // MAINWINDOW_H
